/*
 *  Copright: 2008 Philipp Leitner, Distributed Systems Group,
 *            TU Wien, leitner@infosys.tuwien.ac.at
 *
 *  This file is part of DAIOS.
 *
 *  DAIOS is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as
 *  published by the Free Software Foundation.
 * 
 *  DAIOS is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with DAIOS.  If not, see
 *  <http://www.gnu.org/licenses/>.
 * 
 */

package at.ac.tuwien.infosys.dsg.daios.wsdl.impl;

import at.ac.tuwien.infosys.dsg.daios.wsdl.interfaces.IWSDLPart;

/**
 * A Daios WSDL message part  as defined in a document-style
 * WSDL binding.
 * 
 * @author philipp
 *
 */
public class WSDLDocumentPart implements IWSDLPart {
	
	private String name = null;
	private String type = null;
	
	/**
	 * Construct a new WSDL Document Part.
	 * 
	 * @param name The name of this part.
	 * @param type The XSD type of this part.
	 */
	public WSDLDocumentPart(String name, String type) {
		this.name = name;
		this.type = type;
	}
	
	/**
	 * Get the name of this message part.
	 * 
	 * @return The part name.
	 */	
	public String getPartName() {
		return name;
	}
	
	/**
	 * Get the XSD type of this part.
	 * 
	 * @return The part type.
	 */	
	public String getPartType() {
		return type;
	}

}
